package com.mroapp.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.mroapp.R;
import com.mroapp.base.BaseActivity;

/**
 * Created by apple on 16/7/15.
 */
public class BindDeviceActivity extends BaseActivity {
    private TextView title_name;
    private TextView binddevice_business;
    private ImageView adddevice;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.devicebind);
        initView();


    }

    public void initView(){
        title_name=(TextView)findViewById(R.id.title_name);
        title_name.setText("绑定设备");
        binddevice_business=(TextView)findViewById(R.id.binddevice_business);
        binddevice_business.setOnClickListener(this);
        adddevice=(ImageView)findViewById(R.id.adddevice);
        adddevice.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()){
            case R.id.binddevice_business:
                Intent intent=new Intent(BindDeviceActivity.this,BusinessActivity.class);
                startActivity(intent);
                break;
            case R.id.adddevice:
                Intent bindIntent=new Intent(BindDeviceActivity.this,MipcaActivityCapture.class);
                startActivity(bindIntent);
                break;


        }
    }
}
